C89 fix-up
authoralexmot <alexmot@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 18 Dec 2003 14:19:56 +0000 (14:19 +0000)
committeralexmot <alexmot@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 18 Dec 2003 14:19:56 +0000 (14:19 +0000)
gpsbabel/gpx.c

index dfcce94180e7533e6863142c354651019da16e9e..aed3eb33dcd2a9b74c91cdc3346d53169c49e704 100644 (file)
@@ -551,13 +551,13 @@ static void
 gpx_end(void *data, const char *el)
 {
        char *s = strrchr(current_tag.mem, '/');
+       float x;
 
        if (strcmp(s + 1, el)) {
                fprintf(stderr, "Mismatched tag %s\n", el);
        }
        *s = 0;
 
-       float x;
 
        if (in_cdata) {
                if (in_name && in_wpt && !in_gs_tbugs) {